SortListAscending
Type
statement
Summary
Sorts Target in ascending order.
Syntax
sort <Target> [in ascending order]
Description
Generic sort is performed by comparing the elements of a homogeneous list according to the default comparison function associated to the type of its elements.
note
It is an error if Target is not homogeneous, i.e. if it contains any elements of differing type.
Parameters
Name | Type | Description |
---|---|---|
Target | An expression that evaluates to a list. |
Examples
variable tTestList as List
put [4,3,1,5,2] into tTestList
sort tTestList -- tTestList is [1,2,3,4,5]